package com.zyp.builder;

public class TestBuilder {
	
	public static void main(String[] args) {
		PersonBuilder p=new MaleBuilder();
		BuilderDirector director=new BuilderDirector(p);
		Person person = director.createPerson();
		System.out.println(person);
		System.out.println("----------------------");
		p=new FemaleBuilder();
		director=new BuilderDirector(p);
		person=director.createPerson();
		System.out.println(person);
		
	}

}
